package com.wuzy.core.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wuzy.core.dao.SysRoleMapper;
import com.wuzy.core.pojo.SysRole;
import com.wuzy.core.service.ISysRoleService;
@Service
public class SysRoleServiceImpl implements ISysRoleService {
	@Autowired
	private SysRoleMapper sysRoleMapper;
	public SysRole getById(String roleId) {
		
		return sysRoleMapper.selectByPrimaryKey(roleId);
	}

	public List<SysRole> getAll() {
		return sysRoleMapper.getAll();
	}

	public Integer add(SysRole sysRole) {
		
		return sysRoleMapper.insertSelective(sysRole);
	}

	public Integer updateById(SysRole sysRole) {
		return sysRoleMapper.updateByPrimaryKey(sysRole);
	}

}
